package index

import (
	v1 "gitcode.com/G-YT/ANN/server/api/v1"
	"github.com/gin-gonic/gin"
)

type IndexRouter struct {
}

func (i *IndexRouter) InitIndexRouter(Router *gin.RouterGroup) {
	indexRouter := Router.Group("index")
	indexApi := v1.ApiGroupApp.IndexApiGroup.IndexApi
	{
		indexRouter.GET("getTwoLevelList", indexApi.GetLevelTwoList)   // 获取首页二级列表
		indexRouter.GET("verifyDeviceCode", indexApi.VerifyDeviceCode) // 验证设备码
		indexRouter.POST("saveDeviceCode", indexApi.SaveDeviceCode)    // 保存设备码
	}
}
